package com.example.demo03_mvm.repos;

import androidx.lifecycle.MutableLiveData;

import com.example.demo03_mvm.model.BaseModel;
import com.example.demo03_mvm.model.UserEntity;

import okhttp3.RequestBody;

public class UserRepso extends BaseModel {
    MutableLiveData<UserEntity> liveData = new MutableLiveData<>();
    public MutableLiveData<UserEntity> register(RequestBody body){
        return getData(getApi().register(body),liveData);
    }
    public MutableLiveData<UserEntity> login(RequestBody body){
        return getData(getApi().login(body),liveData);
    }
}
